package cn.edu.zzuli.nothinglink.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WorkPostpone implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "wp_id", type = IdType.AUTO)
    private Integer wpId;

    private Integer teaId;

    /**
     * 所属作业id
     */
    private Integer workId;

    /**
     * 要把作业推迟到什么时间
     */
    private LocalDateTime postponeTime;

    /**
     * 提出推迟的人数
     */
    private Integer agreeNumbers;

    //0为未审批，1为审批
    @TableField(value = "is_reply")
    private Integer isReply;

    /**
     * 决定推迟的时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String courseName;

    @TableField(exist = false)
    private String workName;

}
